<?php
/**
 * Created by PhpStorm.
 * User: chy
 * Date: 2017/3/30
 * Time: 16:30
 */
?>
<?php foreach ($items as $item){?>
    <a href="<?=\yii\helpers\Url::to(['/post', 'id' => $item['id']])?>">
    <div class="pro_box">
        <div class="img_box">
            <img style="padding-left:0px;margin-top:10px;" src="<?=$item['face']?>">
        </div>
        <p><?=$item['title']?></p>
    </div>
    </a>
<?php }?>